<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    const s1 = Symbol("a");
    const s2 = Symbol("a");
    console.log(s1);
    console.log(typeof s1);
    console.log(s1 === s2);

    console.log("======");

    let state = {
        a: Symbol(),
        b: Symbol(),
        c: Symbol(),
        d: Symbol(),
        e: Symbol(),
        f: Symbol(),
        g: Symbol()
    }

    let now = state.c;

    if(now === state.a){
        console.log("星期日")
    }else if(now === state.b){
        console.log("星期一")
    }else if(now === state.c){
        console.log("星期二")
    }else if(now === state.d){
        console.log("星期三")
    }else if(now === state.e){
        console.log("星期四")
    }else if(now === state.f){
        console.log("星期五")
    }else if(now === state.g){
        console.log("星期六")
    }

</script>
</html>